 <div style="display: none;">
      <div id="user-form-window" style="margin: 20px 5px 5px 5px;">
    	<div class="user-prompt" ></div>
    	<!--<form id="user-form" class="user-form" name="user-form" > -->
         <?php echo $this->Form->create('User', array('default' => false, 'id' => 'user-form', 'action' => 'add','inputDefaults' => array('label' => false,'div' => false)));?>	
           <table cellspacing="10">
                <tr>
                    <td>User Name: </td>
                    <td> 
                        <?php echo $this->Form->input('username', array('div' => false, 'label' => false, 'id'=>'username' ,'class' => 'validate[required,custom[noSpecialCaracters]] username', 'value'=>'')); ?>
                        <!--<input name="username" type="text" class="validate[required,custom[noSpecialCaracters]] username"  id="username" value="" /> -->
                    </td>
                </tr>
                <tr>
                    <td>First Name:</td>
                    <td> 
                        <?php echo $this->Form->input('first_name', array('div' => false, 'label' => false, 'id'=>'first_name' ,'class' => 'validate[required,custom[noSpecialCaracters]] first_name', 'value'=>'')); ?>
                      <!--  <input name="first_name" type="text" class="validate[required,custom[noSpecialCaracters]] first_name"  id="first_name" value="" /> -->
                    </td>
                </tr>
                <tr>
                    <td>Last Name:</td>
                    <td>
                        <?php echo $this->Form->input('last_name', array('div' => false, 'label' => false, 'id'=>'last_name' ,'class' => 'validate[required,custom[noSpecialCaracters]] last_name', 'value'=>'')); ?> 
                      <!--  <input name="last_name" type="text" class="validate[required,custom[noSpecialCaracters]] last_name"  id="last_name" value="" /> -->
                    </td>
                </tr>
               	<tr>
                    <td>Password</td>
				    <td>
                    <?php echo $this->Form->input('password', array('type'=>'password', 'div' => false, 'label' => false, 'id'=>'password' ,'class' => 'validate[required,custom[noSpecialCaracters]] password', 'value'=>'')); ?>
                      <!--  <input type="password" name="password"  id="password" class="validate[required] password"/> -->
                    </td>
                </tr>
                <tr>
                    <td>Status:</td>
				    <td>
                        <!--<select id="user-status" name="user-status">
                            <option value="1">Active</option>
                            <option value="0">Inactive</option>
                        </select>-->
                        <?php echo $this->Form->input("status", array('id'=>'status', 'options' => array('1'=>'Active', '0'=>'Inactive')));?>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" align="center">Select User Modules</td>
                </tr>
                <tr>
                    <td colspan="2">
                        <div style="height: 150px; overflow: auto; padding: 5px; border:1px solid #b2b2b2; border-radius: 5px;">
                         <?php
                            if(!empty($allModules)){
                                $module_count = 0;
                                foreach($allModules as $module){
                                 ?>
                                    <div><?php echo $this->Form->input("ModulesUser.$module_count.module_id", array('type'=>'checkbox', 'div' => false, 'label' => false, 'class' => '', 'value'=>''.$module['Module']['id'].'')); ?><?php echo $module['Module']['name']; ?></div>
                                 <?php
                                 $module_count++;
                                }
                            }
                         ?>
                        </div>
                   </td>
                </tr>
                <tr>
                   <td>
                      <!-- <input type="hidden" name="account_upt_id" id="account_upt_id" value="0"/> --> 	
                   </td>
                   <td> 
                       <button type="button" class="save" id="user-save-btn"><?php echo $this->Html->image('ico-49.gif', array('width' => '16', 'height' => '16', 'align' => 'left', 'border' => '0')); ?>&nbsp;Save</button>
                       <button type="reset" class="cancel" id="user-cancel-btn"><?php echo $this->Html->image('ico-43.png', array('width' => '16', 'height' => '16', 'align' => 'left', 'border' => '0')); ?>&nbsp;Cancel</button>
                   </td>
                </tr>
            </table>
          <?php echo $this->Form->end();?>
    <!--	</form> -->
      </div>
    </div>